<template>
  <div class="user">
    <h2>用户页面:</h2>
  </div>
</template>

<script setup>
import { useRoute } from 'vue-router'
const route = useRoute()
// console.log(route.params.id)
</script>
<!-- <script>
export default {
  created() {
    console.log(this.$route.params.id)
  },
}
</script> -->

<style scoped></style>
